import { request } from '@/utils/request'

// 获取账户余额
export const getAccountData = (params)=> {
	return request({
		url: '/queue/supplier-account/get-account-data',
		headers: {
			isToken: false
		},
    method: 'GET',
    params
	})
}

// 获取预估当前余额
export const getForecastAmount = (params)=> {
	return request({
		url: '/queue/supplier-account/get-forecast-amount',
		headers: {
			isToken: false
		},
    method: 'GET',
    params
	})
}

// 充值
export const topUpBalance = (data)=> {
	return request({
		url: '/queue/supplier-account/top-up-balance',
		headers: {
			isToken: false
		},
    method: 'POST',
    data
	})
}

// 充值
export const getFinanceDetail = (params)=> {
	return request({
		url: '/queue/supplier-account/get-finance-detail',
		headers: {
			isToken: false
		},
    method: 'GET',
    params
	})
}

// 充值
export const getDetailById = (params)=> {
	return request({
		url: '/queue/supplier-account/get-by-id',
		headers: {
			isToken: false
		},
    method: 'GET',
    params
	})
}